<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
</head>
<body>
    <h1>用户管理</h1>
    <table border="1" style="width: 300px">
        <tr>
            <th>用户ID</th>
            <th>用户姓名</th>
            <th>用户手机</th>
        </tr>
        <tr th:each="user:${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.username}"></td>
            <td th:text="${user.phone}"></td>

        </tr>
    </table>
<hr>
    <shiro:authenticated>
        已登录<br>
    </shiro:authenticated>
    <span shiro:hasRole="roleA">权限RoleA</span><br>
    <span shiro:hasRole="roleB">权限RoleB</span><br>
    <shiro:guest>游客</shiro:guest>
</body>
</html>